<script setup lang="ts">
const props = defineProps<{
  name: string
  age?: number
  male: string
}>()
</script>

<template>
  <div>
    <h2>子组件</h2>
    <p>{{ name }}</p>
    <p>{{ age }}</p>
    <p>{{ male }}</p>
  </div>
</template>

<style></style>
